package com.ipan.weixin.msg.user;

import com.ipan.weixin.msg.AbstractJsonMsg;

/**
 * 创建分组消息
 * 
 * @author iPan
 * @version 2013-12-26
 */
public class CreateGroupMsg extends AbstractJsonMsg {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1714555875974823117L;

	private GroupBean group;

	public CreateGroupMsg() {
	}

	public CreateGroupMsg(Integer id, String name, Integer count) {
		this.group = new GroupBean(id, name, count);
	}

	public CreateGroupMsg(Integer id, String name) {
		this.group = new GroupBean(id, name);
	}

	public GroupBean getGroup() {
		return group;
	}

	public void setGroup(GroupBean group) {
		this.group = group;
	}

	@Override
	public String toJson() {
		return nonNullBinder.toJson(this);
	}

//	public static void main(String[] args) {
//		CreateGroupMsg msg = new CreateGroupMsg(100, "朋友");
//		System.out.println(msg);
//	}
}
